/*
 * ForSaleBO.java
 *
 * Created on March 5, 2007, 8:07 PM
 *
 * Stores information about a coupon, which is applied to a revenue source
 * contained on a transaction line.  This object contains the relevant
 * revenue source ID, the amount or percentage of the coupon, the start and
 * expiration dates, and a description of the coupon.
 */

package edu.byu.isys413.group1E.data;

import java.util.Calendar;
import java.util.Date;

/**
 * Contains ForSale information
 * @author tkulbeth
 */
public class ForSaleBO extends PhysicalBO {
    
    private boolean newUsed;
    private boolean sold;
    
    /** Creates a new instance of ForSaleBO */
    ForSaleBO() {
    }
    
    /**
     * Creates a new instance of TransactionBO with an ID
     * @param productID contains the product id
     */
    ForSaleBO(String productID) {
        setProductID(productID);
        this.setDirty(true);
    }
    
    /**
     *gets the NewUsed Status
     *
     *@return newUsed New-Used status
     */
    public boolean getNewUsed() {
        return newUsed;
    }

    /**
     *sets the NewUsed Status
     * 
     * @param newUsed newUsed
     */
    public void setNewUsed(boolean newUsed) {
        this.newUsed = newUsed;
        setDirty(true);
    }
    
    /**
     *gets the sold status
     * 
     * @return sold sold
     */
    public boolean getSold() {
        return sold;
    }

    /**
     *sets teh sold status 
     *
     * @param sold sold
     */
    public void setSold(boolean sold) {
        this.sold = sold;
        setDirty(true);
    }
}
